From 58d247d7ae71bd2c830f02491fa163d795e23c0a Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Tue, 29 Nov 2011 21:14:24 +0100 Subject: [PATCH] Avoid shadowing a variable Move bg_color variable to an inner scope. --- gtk/gtklabel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 600b6ac1a3..f7635213d3 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -4117,8 +4117,6 @@ gtk_label_draw (GtkWidget *widget, if (priv->text && (*priv->text != '\0')) { - GdkRGBA bg_color, fg_color; - get_layout_location (label, &x, &y); context = gtk_widget_get_style_context (widget); @@ -4138,6 +4136,7 @@ gtk_label_draw (GtkWidget *widget, { gint range[2]; cairo_region_t *clip; + GdkRGBA bg_color, fg_color; range[0] = info->selection_anchor; range[1] = info->selection_end; -- 2.30.2